package com.bestvike.stone.spring.shiro.annotation.handler;

import com.bestvike.stone.spring.shiro.authz.exception.AuthorizationException;

import java.lang.annotation.Annotation;

/**
 * 注解处理器
 */
public interface AuthorizingAnnotationHandler {
    /**
     * 获取支持的注解类型
     */
    Class<? extends Annotation> getAnnotationClass();

    /**
     * 断言权限
     */
    void assertAuthorized(Annotation annotation) throws AuthorizationException;
}
